package com.hbt.word_provider.service;

import com.hbt.api.entity.CommonResult;
import com.hbt.api.entity.StaticBean;
import com.hbt.api.entity.Word;
import com.hbt.api.entity.WordsCondition;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

public interface WordService {
    public String fanyi(String src);

    public boolean hasSameWord(int userid, String src);
    public int addWord(Word word);
    public List<Word> getWordByCondition(WordsCondition wordsCondition);
    public Word getWordByWordid(int wordid);
    public int updateWord(Word word);
    public List<Word> findSimilar(String src, int rate, List<Word> words);
    public StaticBean getProgress(int userid);
    public int delWord(int wordid);
}
